//缓存与管理员相关的信息

//学员初始信息
const STUDENTINITINFOMATION = ''

function setStudentInformation(data){
    console.log('你啊：',data)
    localStorage.setItem(STUDENTINITINFOMATION,JSON.stringify(data))
}

function getStudentInformation(){
    const data = localStorage.getItem(STUDENTINITINFOMATION);
    const studentData = JSON.parse(data);
    return studentData;
}

function removeStudentInformation(){
    localStorage.removeItem(STUDENTINITINFOMATION)
}

//教练初始信息
const COACHINITINFOMATION = ''

function setCoachInformation(data){
    console.log('你啊：',data)
    localStorage.setItem(COACHINITINFOMATION,JSON.stringify(data))
}

function getCoachInformation(){
    const data = localStorage.getItem(COACHINITINFOMATION);
    const coachData = JSON.parse(data);
    return coachData;
}

function removeCoachInformation(){
    localStorage.removeItem(COACHINITINFOMATION)
}

//学员搜素信息
const STUDENTSEARCHINFORMATION = ''

function setSearchStudentInformation(data){
    console.log('你啊：',data)
    localStorage.setItem(STUDENTSEARCHINFORMATION,JSON.stringify(data))
}

function getSearchStudentInformation(){
    const data = localStorage.getItem(STUDENTSEARCHINFORMATION);
    const studentData = JSON.parse(data);
    return studentData;
}

function removeSearchStudentInformation(){
    localStorage.removeItem(STUDENTSEARCHINFORMATION)
}



//教练搜素信息
const COACHSEARCHINFOEMATION = ''

function setSearchCoachInformation(data){
    console.log('你啊：',data)
    localStorage.setItem(COACHSEARCHINFOEMATION,JSON.stringify(data))
}

function getSearchCoachInformation(){
    const data = localStorage.getItem(COACHSEARCHINFOEMATION);
    const coachData = JSON.parse(data);
    return coachData;
}

function removeSearchCoachInformation(){
    localStorage.removeItem(COACHSEARCHINFOEMATION)
}



export {
    setStudentInformation,
    getStudentInformation,
    removeStudentInformation,
    setCoachInformation,
    getCoachInformation,
    removeCoachInformation,
    setSearchStudentInformation,
    getSearchStudentInformation,
    removeSearchStudentInformation,
    setSearchCoachInformation,
    getSearchCoachInformation,
    removeSearchCoachInformation
}

